package com.buka.communicate.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.buka.communicate.R;

import net.neiquan.applibrary.base.BaseActivity;

import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/11/21 0021.
 */

public class SettingActivity extends BaseActivity {
    @InjectView(R.id.countBanding)
    RelativeLayout countBanding;
    @InjectView(R.id.msgNotify)
    TextView msgNotify;
    @InjectView(R.id.privateSetting)
    TextView privateSetting;
    @InjectView(R.id.funcSetting)
    TextView funcSetting;
    @InjectView(R.id.suggestBack)
    RelativeLayout suggestBack;
    @InjectView(R.id.goodComment)
    TextView goodComment;
    @InjectView(R.id.cacheSize)
    TextView cacheSize;
    @InjectView(R.id.clearCache)
    RelativeLayout clearCache;
    @InjectView(R.id.currentVersion)
    TextView currentVersion;
    @InjectView(R.id.versionUpdate)
    RelativeLayout versionUpdate;
    @InjectView(R.id.aboutUs)
    TextView aboutUs;
    @InjectView(R.id.cancelLogin)
    TextView cancelLogin;
    @InjectView(R.id.existLogin)
    TextView existLogin;

    @Override
    public int getRootViewId() {
        return R.layout.activity_setting;
    }

    @Override
    public void setViews() {
        setTitleTv("设置");
    }

    @Override
    public void initData() {

    }

    @OnClick({R.id.countBanding, R.id.msgNotify, R.id.privateSetting, R.id.funcSetting, R.id.suggestBack, R.id.goodComment, R.id.clearCache, R.id.versionUpdate, R.id.aboutUs, R.id.cancelLogin, R.id.existLogin})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.countBanding:
                startActivity(new Intent(SettingActivity.this,CountBindingActivity.class));
                break;
            case R.id.msgNotify:
                startActivity(new Intent(SettingActivity.this,MsgNotifyActivity.class));
                break;
            case R.id.privateSetting:
                startActivity(new Intent(SettingActivity.this,PrivateSettingActivity.class));
                break;
            case R.id.funcSetting:
                startActivity(new Intent(SettingActivity.this,FuncSettingActivity.class));
                break;
            case R.id.suggestBack:
                startActivity(new Intent(SettingActivity.this,SuggestBackActivity.class));
                break;
            case R.id.goodComment:
                break;
            case R.id.clearCache:
                break;
            case R.id.versionUpdate:
                break;
            case R.id.aboutUs:
                startActivity(new Intent(SettingActivity.this,AboutUsActivity.class));
                break;
            case R.id.cancelLogin:
                startActivity(new Intent(SettingActivity.this,RegistActivity.class));
                break;
            case R.id.existLogin:
                startActivity(new Intent(SettingActivity.this,RegistActivity.class));
                break;
        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.inject(this);
    }
}
